package net.takela.auth.token.token;

import lombok.Getter;
import lombok.Setter;

@Getter
@Setter
public class AuthTokenPayload<T> {
    private String uuid;
    private T userInfo;
    public AuthTokenPayload(){}
    public static <T> AuthTokenPayload<T> of(String uuid, T userInfo){
        AuthTokenPayload<T> p =  new AuthTokenPayload<T>();
        p.setUuid(uuid);
        p.setUserInfo(userInfo);
        return p;
    }
}
